package function;

import model.Author;
import model.GetAuthors;

import java.util.List;

public class SearchPipei {
    public static void main(String[] args) {
        List<Author> authors = GetAuthors.getAuthors();
        boolean b = authors.stream()
                .anyMatch(author -> author.getAge() > 29);
        System.out.println(b);
    }
}
